package com.zhiyu.api;

/**
 *  返回状态码和提示信息
 */
public enum ReturnMsg {

    SUCCESS("0", "成功"),
    UNAUTHORIZED("10005", "暂未登录或token已经过期"),
    FORBIDDEN("10004", "没有相关权限"),
    ERROR("-1", "失败");

    private String code;
    private String msg;

    private ReturnMsg (String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}

